V
Vincent Foley
Hi,
I would like to write a small script in which a user enters a small
pager message. The message can't be longer than 60 characters however,
and instead of informing him after he pressed enter, forcing him to
retype it again or copy and pasting and then editing, is there a way I
could say how many characters are left? Something like:
Enter message (42 chars left): I am the king of the
I would prefer not to use curses if at all possible.
I would like to write a small script in which a user enters a small
pager message. The message can't be longer than 60 characters however,
and instead of informing him after he pressed enter, forcing him to
retype it again or copy and pasting and then editing, is there a way I
could say how many characters are left? Something like:
Enter message (42 chars left): I am the king of the
I would prefer not to use curses if at all possible.