fbergama / pigfx

PiGFX is a bare metal kernel for the Raspberry Pi that implements a basic ANSI terminal emulator with the additional support of some primitive graphics functions.
MIT License
278 stars 62 forks source link

small? Feature-Request: blinking Block-Form-Cursor #41

Closed guidol70 closed 4 years ago

guidol70 commented 4 years ago

I successful use your PiGFX with Arduino Due running RunCPM - many Thanks.

So I would like to ask if it may be possible to get a flashing Block-Form Cursor? It make me more easy to "find" the Cursor against the static white block ;) Thanks again for reading/considering :)

chregu82 commented 4 years ago

Thank you for using PiGFX. I think I'm going to do this. That's a nice little feature.

chregu82 commented 4 years ago

This is done in V1.8.1

guidol70 commented 4 years ago

Many thanks for the quick implementation ;)

I did wrote me the short CBLINK.BAS: 10 PRINT CHR$(27);"[?25b" 20 SYSTEM

and could start it with MBASIC CBLINK.BAS (for MBASIC I had to set replaceLFwithCR = 1 in pigfx.txt)

Now Cursor is blinking fine 👍 Is there a way to enable this on startup in pigfx.txt?

chregu82 commented 4 years ago

No, this can only be enabled with the escape code, like you did.

lindoran commented 4 years ago

You can add to autoexec.bat if you put the code into a .txt file and then use type filename.txt [nopage]

guidol70 commented 4 years ago

You can add to autoexec.bat if you put the code into a .txt file and then use type filename.txt [nopage]

There is no real autoexec.bat in CP/M, but I did create a CBLINK.TXT which can be used with the type command ;) CBLINK.TXT

Normal filename on my system is CBLINK.ESC

lindoran commented 4 years ago

Under my cpm 3.0 implemention on the Z80-mbc2 you can configure a autoexec idk about other platforms, absolutely it's not the .bat extension. I'll have to take a look at the binary that loads on start up, maybe It is possible to hack in the escape code into the version badge for cpm. Otherwise if you compile your own cpm custom you can add it to any string that echos out and it will blink the cursor.

On Wed, Sep 30, 2020, 11:14 AM guidol70 notifications@github.com wrote:

You can add to autoexec.bat if you put the code into a .txt file and then use type filename.txt [nopage]

There is no real autoexec.bat in CP/M, but I did create a CBLINK.TXT which can be used with the type command ;) CBLINK.TXT https://github.com/fbergama/pigfx/files/5306825/CBLINK.TXT

Normal filename on my system is CBLINK.ESC

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fbergama/pigfx/issues/41#issuecomment-701493159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQIK5ZEPS456MP7WKBFUAKLSINKOTANCNFSM4RKVOW3Q .