[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LP flag
From: |
Thomas Dickey |
Subject: |
Re: LP flag |
Date: |
Fri, 09 Aug 2013 04:31:15 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
> From: Oliver
> Subject: LP flag
> Date: Thu, 8 Aug 2013 21:49:53 +1200
> _________________________________________________________________
>
> Hi, I have made a kind of pseudo terminal for a lcd project I am
> working on. Everything is working great except the last char in the
> last column of the last line is not printed, all others are printed.
> ie this is a 16 column by 4 rows and if I use this code:
> mvprintw(0, 0, "0123456789abcdef");
> mvprintw(1, 0, "0123456789abcdef");
> mvprintw(2, 0, "0123456789abcdef");
> mvprintw(3, 0, "0123456789abcdef");
> I get the following on the display
> 0123456789abcdef
> 0123456789abcdef
> 0123456789abcdef
> 0123456789abcde
> the last f is missing. After doing some reading I think this might be
> related to the `LP' flag as I am using the 'am' flag in
> my implementation. I tried adding the LP flag after the am flag, but
> tic rejecteds the flag ""vtlcd", line 4, col 19, terminal 'vtlcd':
> unknown capability 'LP'"
>
> What am I doing wrong?
>
> btw my term file looks like this (it may not be prefect, but apart
> from this issue it works):
> vtlcd|,
> bw, am, LP,
> cols#16, it#4, lines#4,
> clear=\EJ, cr=^M,
> cub1=\ED, cud1=\EB, cuf1=\EC,
> cuu1=\EA, cnorm=\Ev, civis=\EV,
> sgr0=\Ea, blink=\Eb,
> home=\EH, ht=^I, ind=^J, kbs=^H,
> kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
> nel=^M^J,
ncurses won't write to the lower-right corner unless it can see how to
prevent the cursor from wrapping (and forcing the display to scroll).
Usually that's done by one of the insert-mode features - depends on
what your actual terminal supports.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- LP flag, Oliver, 2013/08/08
- Re: LP flag,
Thomas Dickey <=