9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Implementing cooked mode
@ 2006-12-21  0:54 Joel Salomon
  2006-12-21  1:08 ` Russ Cox
  2006-12-21  2:27 ` [9fans] " Joel Salomon
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Salomon @ 2006-12-21  0:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

If a program has the console in raw mode, can it erase characters or
words that it has echoed to the screen?

Context is a homework assignment to implement cooked mode in user
space.  The code in /sys/src/cmd/rio/wind.c looks to be a start, but I
don't see how to remove characters from the screen.  I suppose I could
use string() in libdraw and draw the string graphically rather than
echoing.  Rio's wind.c and acme's text.c both handle the various
control characters, but they aren't pretending to write to the
console.

Nemo's book has a similar assignment, so it seems to be doable; I just
haven't found how in the manual.

Failing that, are there printable glyphs shown if control characters
are write()n to the console?

--Joel


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

end of thread, other threads:[~2006-12-21 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-21  0:54 [9fans] Implementing cooked mode Joel Salomon
2006-12-21  1:08 ` Russ Cox
2006-12-21  1:47   ` Russ Cox
2006-12-21 12:50     ` Brantley Coile
2006-12-21  2:27 ` [9fans] " Joel Salomon
2006-12-21  4:01   ` Russ Cox

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).