Reading from console



Hi, i am designing routines to read from console. Such as "read signed
decimal number", "read string up to 10 chars", etc.

Maybe you have noticed, that standard way to work with this kind of
input, is to let user type entire line first, and then process it.

I will not go into detail, but in my idea how to implement this,
reading from console will ALWAYS beheave like this. Even if you are
going to read one character. so there will be nothing like C's getc(),
which really only takes one char.

Do you think this would be a problem?

In fact, getc() is only exception to rule that came in my mind

.



Relevant Pages

  • Re: [2.6 patch] UTF-8 fixes in comments
    ... Did you put the bash shell and the console into unicode mode? ... The console yes (by default until I disabled it to restore correct ... two chars to the bash, which itself sends two chars to the terminal, ... pressing backspace once sends one backspace all along, ...
    (Linux-Kernel)
  • console nightmare (vidcontrol + kbdcontrol + iso-8859-15 + shell)
    ... I'm having troubles in getting console to work using 8859-15 (or even ... Still i miss 2 chars: € Ç ... but it still won't solve the shell issue) ...
    (freebsd-questions)
  • Re: [PATCH 1/2] Colored kernel output (run3)
    ... Are there any other drivers besides vgacon and fbcon that use vt.c? ... With an 8-color console, only the first 8 values are considered. ... the whole Unicode set of chars. ... I'll have to try this, because usually, setterm operates on TTYs ...
    (Linux-Kernel)
  • console nightmare (vidcontrol + kbdcontrol + iso-8859-15 + shell)
    ... I'm having troubles in getting console to work using 8859-15 (or even ... 8859-1), because i'm portuguese and i need some extra chars, like(i ... Still i miss 2 chars: € Ç ... but it still won't solve the shell issue) ...
    (freebsd-questions)
  • Re: wprintf() could not display unicode chars which is > 255 to console?
    ... > console window with formatting strings. ... Unicode and the Windows console is a tricky business. ... string msg, action; ... In Japanese you should have no spaces, and the translator can remove them. ...
    (microsoft.public.vc.mfc)