ANSI or VT100 driver for a serial LCD?

I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal.

Basically I need something that can scroll up and down, position the cursor at a specific place, and ideally do some emphasis (like reverse video or underline.)

I've googled all over the place, but I haven't found anything promising...

I recall seeing something like that a long time ago, but I can't find it.....

Anyone know of anything like this?

Thanks,

--Yan

Reply to
CptDondo
Loading thread data ...

[snip]

Can the lcdproc code

formatting link
be adapted to suit your needs?

Reply to
John-Paul Stewart

...

Would it work to copy the ansi-generic entry in /etc/termcap (you'd have to verify the other tc values, of course, commenting out those that aren't applicable) to something like:

ansi-24x2|HD44780 LCD terminal:\ :am:xo:\ :co#24:li#2:tc=vanilla:tc=ansi+csr:tc=ansi+cup:\ :tc=ansi+rca:tc=ansi+erase:tc=ansi+tabs:tc=ansi+local:\ :tc=ansi+idc:tc=ansi+idl:tc=ansi+rep:tc=ansi+sgrbold:\ :tc=ansi+arrows:

and then run an mgetty in /etc/inittab using that terminal spec. on ttyS[?] (assuming it's connected to a serial port)?

Reply to
Patrick

...

Sorry, that should be mingetty or getty.

Reply to
Patrick

I found it shortly after I posted.... But it is overkill for my needs.

I really just need a small subset of ANSI so I think I'll just roll my own....

--Yan

--
  o__
  ,>/'_          o__
  (_)\(_)        ,>/'_        o__
Yan Seiner, PE  (_)\(_)       ,>/'_     o__
Certified Personal Trainer   (_)\(_)    ,>/'_        o__
Licensed Professional Engineer         (_)\(_)       ,>/'_
Who says engineers have to be pencil necked geeks?  (_)\(_)
Reply to
Captain Dondo

Its not hard. Good luck.

Reply to
The Natural Philosopher

Just generate yourself a terminfo file and you are done. This way you will be able to use ncurses or slang library for programming.

I did one for Matrix Orbital 202-25 and 204-25 some time ago:

matrix202|Matrix-Orbital LK-202-25 LCD module, am, cols#20, lines#2, clear=\376X, cnorm=\376J\376S, civis=\376T\376K, cub1=\376L, cuf1=\376M, cup=\376G%p2%{1}%+%c%p1%{1}%+%c, home=\376H,rs2=\376C\376Q\376S,

matrix204|Matrix-Orbital LK-204-25 LCD module, am, cols#20, lines#4, clear=\376X, cnorm=\376J\376S, civis=\376T\376K, cub1=\376L, cuf1=\376M, cup=\376G%p2%{1}%+%c%p1%{1}%+%c, home=\376H,rs2=\376C\376Q\376S,

Have a look at terminfo(5) and tic(1) for details. I don't know the appropriate commands for your Display, so I'm unable to setup a terminfo file for you.

Sven

--
"linux is evolution, not intelligent design"
(Linus Torvalds)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web
Reply to
Sven Geggus

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.