Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 0dcfd4ff authored by rswindell's avatar rswindell

Added a new sbbs_t.console (JS console.status) flag: CON_CR_CLREOL, which

when set, force a clear-to-end-of-line sequence to be sent to the remote
terminal before sending a carriage-return (CR, '\r') character. This is useful
in scenarios where you want to move/home the cursor and *not* clear the screen
and then display or execute something that assumes clean lines are being
displayed on and thus wouldn'd bother with any clear-to-eol sequences before
line-endings.
Any scripts that enable this mode should disable it upon exit (e.g. using
js.on_exit() to restore the original console status).
parent 54e86bf0
......@@ -434,6 +434,8 @@ int sbbs_t::outchar(char ch)
else {
if(ch==(char)TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */
if(ch == '\r' && (console&CON_CR_CLREOL))
cleartoeol();
if(term&PETSCII) {
uchar pet = cp437_to_petscii(ch);
if(pet == PETSCII_SOLID)
......
......@@ -486,6 +486,7 @@ typedef enum { /* Values for xtrn_t.event */
#define CON_HIGH_FONT (1<<19) /* Alt high-intensity font activated */
#define CON_BLINK_FONT (1<<20) /* Alt blink attribute font activated */
#define CON_HBLINK_FONT (1<<21) /* Alt high-blink attribute font activated */
#define CON_CR_CLREOL (1<<31) // outchar('\r') clears to end-of-line first
/* Number of milliseconds */
#define DELAY_AUTOHG 1500 /* Delay for auto-hangup (xfer) */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment