Commit Graph

17 Commits

Author SHA1 Message Date
cgd
4515ccfe3e nuke msg_printf() and msg_printf_add(). 1999-07-04 22:55:48 +00:00
cgd
a70b70f98d const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's.  'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
1999-07-04 21:30:14 +00:00
cgd
efb4e0892c oops, forgot an _ 1999-07-04 10:39:40 +00:00
cgd
8b6866fc0b privatize msg_beep 1999-07-04 10:35:19 +00:00
cgd
4443f1b7ab nuke msg_{,no}echo, add msg_prompt_noecho 1999-07-04 10:29:30 +00:00
cgd
ed2a9c9df9 nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
1999-07-04 10:13:12 +00:00
cgd
e7861bf936 turn on automatic text layout for the printf and display fns 1999-07-04 09:37:18 +00:00
cgd
e8b59e21bb provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
1999-07-04 07:40:51 +00:00
cgd
b9b5f1fc26 implement word kill with control-W 1999-06-23 17:42:11 +00:00
cgd
3788a37507 add code to do dynamic message text layout, currently completely disabled. 1999-06-23 17:32:32 +00:00
cgd
beba4bb3e5 replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()
to 0,0 was unnecessary because wclear() is documented to do that.  also,
the immediate wrefresh() done by msg_clear() means that if we can take
advantage of full screen clear sequence, we will.
1999-06-23 09:19:33 +00:00
cgd
82ecc5c4d7 don't bother calculated up MAXSTR, especially since the value calculated
is _bogus_ in the face of printf-like message formatting!  Instead,
calcuate the max size to format when the message window is set.  We know
that we'll never want to format more characters than can fit in the window.
1999-06-22 15:00:37 +00:00
cgd
49aa92dfc0 don't dereference NULL when thinking about copying the default 1999-06-19 00:40:29 +00:00
cgd
5fa829d0bd teach the message prompting code to use control-U as line kill character.
(not really the right thing, but it already hard-codes backspace and
delete rather than using the terminal settings...)
1999-06-19 00:13:19 +00:00
cgd
a8d01c6140 fix an off-by-one error (it would put up to max_chars plus NUL into the string,
which is one too many).  Also, msgc manual page says that 'def' and 'val'
can be the same string, but the way input was done (characters typed
went directly into val) meant that the contents of 'def' would be corrupted.
If the user backspaced to the beginning of the line and hit return (to accept
the default), they'd get a combination of the old default string and the
new characters they typed.  alloca() a buffer an put new input there to
avoid this problem.
1999-06-19 00:00:48 +00:00
veego
635cf4e57c It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.
1999-04-25 09:10:07 +00:00
phil
584c2298f0 Import a simple message system with 'compiled' messages. Used by
the net system install program.
1997-09-26 21:16:38 +00:00