summaryrefslogtreecommitdiff
path: root/usr.bin/msgc/msg_sys.def
AgeCommit message (Collapse)Author
1999-07-04nuke msg_printf() and msg_printf_add().cgd
1999-07-04const-ify strings as appropriate, and convert message 'numbers' fromcgd
ints to 'msg's. 'msg' is currently typedef'd as 'const char *', but it'll become more complex eventually.
1999-07-04oops, forgot an _cgd
1999-07-04privatize msg_beepcgd
1999-07-04nuke msg_{,no}echo, add msg_prompt_noechocgd
1999-07-04nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and makecgd
msg_vprintf private.
1999-07-04turn on automatic text layout for the printf and display fnscgd
1999-07-04provide APIs (currently mostly undocumented) to print pre-formattedcgd
(table) text.
1999-06-23implement word kill with control-Wcgd
1999-06-23add code to do dynamic message text layout, currently completely disabled.cgd
1999-06-23replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()cgd
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-22don't bother calculated up MAXSTR, especially since the value calculatedcgd
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-19don't dereference NULL when thinking about copying the defaultcgd
1999-06-19teach the message prompting code to use control-U as line kill character.cgd
(not really the right thing, but it already hard-codes backspace and delete rather than using the terminal settings...)
1999-06-19fix an off-by-one error (it would put up to max_chars plus NUL into the string,cgd
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-04-25It was a bad idea to call a function 'beep'.veego
Rename it to msg_beep to avoid conflicts with the new curses.h.
1997-09-26Import a simple message system with 'compiled' messages. Used byphil
the net system install program.