Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In apps/examples/nxterm, nxterm_listener.c is the thread that drivers nx_eventhandler(). The "normal" window NX keyboard callback is the function nxwndo_kbdin() in nxterm_wndo.c. It just writes the keyboard data to stdout.

The apps/examples/nxterm/

...

Kludge

apps/examples/nxterm does not do things in the normal way, however.  NSH does not receive keyboard input from NX; it gets keyboard input directly from the default stdin which is probably not a keyboard at all but more likely the host PC serial console. This is okay because only the background window is used and that example does not need the help of NX to select the window that has focus.

...