diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-08 23:45:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-08 23:45:27 +0000 |
commit | 40472e4d24727eb8c2cf003fa10c3d4c6a89e22b (patch) | |
tree | a3b19b698e154070851f613743d2c3b6467b5828 /screen.c | |
parent | d069efd47cacc3156036ed37d5532d6a1d4f55c3 (diff) | |
download | FreeBSD-src-40472e4d24727eb8c2cf003fa10c3d4c6a89e22b.zip FreeBSD-src-40472e4d24727eb8c2cf003fa10c3d4c6a89e22b.tar.gz |
Vendor import of less v429
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 37 |
1 files changed, 34 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2007 Mark Nudelman + * Copyright (C) 1984-2008 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -1550,7 +1550,8 @@ init() */ for (i = 1; i < sc_height; i++) putchr('\n'); - } + } else + line_left(); #else #if MSDOS_COMPILER==WIN32C if (!no_init) @@ -1787,7 +1788,7 @@ win32_scroll_up(n) /* Move the source text to the top of the screen. */ new_org.X = rcSrc.Left; - new_org.Y = 0; + /* new_org.Y = rcClip.top; -- doesn't compile under MSVC6 */ /* Fill the right character and attributes. */ fillchar.Char.AsciiChar = ' '; @@ -2469,3 +2470,33 @@ WIN32getch(tty) return ((char)ascii); } #endif + +#if MSDOS_COMPILER +/* + */ + public void +WIN32setcolors(fg, bg) + int fg; + int bg; +{ + SETCOLORS(fg, bg); +} + +/* + */ + public void +WIN32textout(text, len) + char *text; + int len; +{ +#if MSDOS_COMPILER==WIN32C + DWORD written; + WriteConsole(con_out, text, len, &written, NULL); +#else + char c = text[len]; + text[len] = '\0'; + cputs(text); + text[len] = c; +#endif +} +#endif |