linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reading back characters from terminal
@ 2003-08-13 18:52 Fekete Gabor
  2003-08-13 23:29 ` Glynn Clements
  2003-08-14 11:07 ` program killed QingHua Wang
  0 siblings, 2 replies; 9+ messages in thread
From: Fekete Gabor @ 2003-08-13 18:52 UTC (permalink / raw)
  To: linux-c-programming

hi,

is there a way to read back characters from the terminal (e.g. xterm).
i mean for example running xterm with bash and writing a program that
when run from the bash prompt could read an arbitrary text back from
the xterm window.
e.g.:

$ ls -al
total 16
drwxr-xr-x    4 x        users        4096 Jun 20 00:39 ./
drwxr-xr-x   21 x        users        4096 Aug 13 21:33 ../
drwxr-xr-x    2 x        users        4096 Jun 22 20:45 colors/
drwxr-xr-x    2 x        users        4096 Jun 14 20:06 plugin/
$ program
and then the "program" would read back the contents of the terminal, like
ten characters starting from the position row 5, line 7.

WITHOUT NCURSES!

anyone?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-08-14 22:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-13 18:52 reading back characters from terminal Fekete Gabor
2003-08-13 23:29 ` Glynn Clements
2003-08-14  9:38   ` Fekete Gabor
2003-08-14 15:54     ` Fekete Gabor
2003-08-14 22:49       ` Glynn Clements
2003-08-14 11:07 ` program killed QingHua Wang
2003-08-14 10:25   ` Tony Clarke
2003-08-14 13:00     ` QingHua Wang
2003-08-14 12:54       ` Tony Clarke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).