Jump to content




Termu - Terminal-based Emulator


58 replies to this topic

#41 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 08 February 2016 - 06:53 AM

View PostCoderPuppy, on 08 February 2016 - 04:13 AM, said:

Have you installed penlight? It's part of the second to last code block in the recommended installation instructions.

Yeah, I installed all of those things with luarocks.

#42 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 08 February 2016 - 01:53 PM

View PostCoderPuppy, on 08 February 2016 - 03:09 AM, said:

Unless those characters exist in Unicode I can't add them in the emulator.
It should be possible to create a font that has them, though.
That's too bad. The closest Unicode gets is 2x2: http://jrgraphix.net...icode/2580-259F
So, how would I go about making a font for that? I assume the characters it renders instead is what it gets when you attempt to render them? Or are they just a placeholder can't cannot just be swapped out for the proper characters with a font.
If so, what values does it use?

Edited by Selim, 08 February 2016 - 02:06 PM.


#43 CoderPuppy

  • Members
  • 121 posts

Posted 08 February 2016 - 06:59 PM

View PostSelim, on 08 February 2016 - 01:53 PM, said:

View PostCoderPuppy, on 08 February 2016 - 03:09 AM, said:

Unless those characters exist in Unicode I can't add them in the emulator.
It should be possible to create a font that has them, though.
That's too bad. The closest Unicode gets is 2x2: http://jrgraphix.net...icode/2580-259F
So, how would I go about making a font for that? I assume the characters it renders instead is what it gets when you attempt to render them? Or are they just a placeholder can't cannot just be swapped out for the proper characters with a font.
If so, what values does it use?

Unfortunately the codes used for them (128 - 159) are continuation code units in UTF-8.
Which means any terminal that interprets that output as UTF-8 will see them as invalid text.
It should be possible to remap the output to valid UTF-8 such that the codepoint is the same as the original byte.
However that means mangling any actual UTF-8 that's output and my very limited testing hasn't been successful.

#44 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 08 February 2016 - 10:48 PM

View PostCoderPuppy, on 08 February 2016 - 06:59 PM, said:

--snip--
Well, if you get that working so that each 128-159 are unique characters, let me know and I will attempt to make a font for the teletext from there.

#45 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, Australia

Posted 08 February 2016 - 11:53 PM

You may be able to set a custom font through she'll commands with "setfont" http://man7.org/linu.../setfont.8.html

#46 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 09 February 2016 - 01:19 AM

View Postamtra5, on 08 February 2016 - 11:53 PM, said:

You may be able to set a custom font through she'll commands with "setfont" http://man7.org/linu.../setfont.8.html
That will not help currently as each teletext character is printing as the same character. A font will not be able to fix that.

#47 CoderPuppy

  • Members
  • 121 posts

Posted 09 February 2016 - 04:48 AM

View Postamtra5, on 08 February 2016 - 11:53 PM, said:

You may be able to set a custom font through she'll commands with "setfont" http://man7.org/linu.../setfont.8.html
That looks like it only works for the real terminal not any terminal emulators.

View PostSelim, on 08 February 2016 - 10:48 PM, said:

View PostCoderPuppy, on 08 February 2016 - 06:59 PM, said:

--snip--
Well, if you get that working so that each 128-159 are unique characters, let me know and I will attempt to make a font for the teletext from there.
I got the output remapped from a bytes to Unicode code points (encoded as UTF-8) (pushed to the debug branch).
Unfortunately U+0080 - U+009F (what 128-159 are mapped to) are control characters in Unicode, which seems to make the not render at all (tested in st and urxvt).
The only fix I can think of is having a custom mapping that maps a bunch of CC-specific characters to Unicode code points.
So I need suggestions for where to map them to (just pick a code page from here that you think CC won't add support for in the future).

Edited by CoderPuppy, 09 February 2016 - 04:48 AM.


#48 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 09 February 2016 - 01:46 PM

View PostCoderPuppy, on 09 February 2016 - 04:48 AM, said:

--snip--
So I need suggestions for where to map them to (just pick a code page from here that you think CC won't add support for in the future).
I would say use any language page that isn't from the Americas or Europe.

#49 FUNCTION MAN!

  • Members
  • 292 posts

Posted 11 February 2016 - 12:47 AM

I'd use the CJK sets.

#50 CoderPuppy

  • Members
  • 121 posts

Posted 11 February 2016 - 06:24 PM

Ok, 128-159 (the teletext characters) now mapped to U+1D100 - U+1D10F (the first two columns of this) on the debug branch.

View PostFUNCTION MAN!, on 11 February 2016 - 12:47 AM, said:

I'd use the CJK sets.

View PostSelim, on 09 February 2016 - 01:46 PM, said:

View PostCoderPuppy, on 09 February 2016 - 04:48 AM, said:

--snip--
So I need suggestions for where to map them to (just pick a code page from here that you think CC won't add support for in the future).
I would say use any language page that isn't from the Americas or Europe.

Any reason why you think using a language page is best?

Edited by CoderPuppy, 11 February 2016 - 06:25 PM.


#51 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 11 February 2016 - 06:32 PM

View PostCoderPuppy, on 11 February 2016 - 06:24 PM, said:

--snip--
Any reason why you think using a language page is best?
Not really.

#52 CoderPuppy

  • Members
  • 121 posts

Posted 14 February 2016 - 06:32 AM

I just pushed an update with modems.

I added some instructions to the OP. However I feel they're terrible, so if anyone feels like writing documentation...

Also I need ideas for more peripherals to add, maybe modems for other things (such as SPI or I2C for RPis), something with printers or peripherals from other mods.

#53 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 14 February 2016 - 05:37 PM

View PostCoderPuppy, on 14 February 2016 - 06:32 AM, said:

I just pushed an update with modems.
--snip--
Also I need ideas for more peripherals to add, maybe modems for other things (such as SPI or I2C for RPis), something with printers or peripherals from other mods.
Oooooo.....
And, yes, Pi modems too :)

#54 CoderPuppy

  • Members
  • 121 posts

Posted 14 February 2016 - 05:51 PM

View PostSelim, on 14 February 2016 - 05:37 PM, said:

-snip-
And, yes, Pi modems too :)/>

Are there any specific devices that you want to work? I might be able to add custom support for some things (maybe ZigBee or XBee radios could be modems and LCDs could be monitors).

#55 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 14 February 2016 - 05:58 PM

View PostCoderPuppy, on 14 February 2016 - 05:51 PM, said:

Are there any specific devices that you want to work? I might be able to add custom support for some things (maybe ZigBee or XBee radios could be modems and LCDs could be monitors).
I'm not sure what else. Is it possible to have USB printers act similar to CC Printers?

#56 FUNCTION MAN!

  • Members
  • 292 posts

Posted 14 February 2016 - 10:48 PM

With enough buffering and invocation of lpr, everything is possible.

#57 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 15 February 2016 - 01:30 AM

What about using USB drives as mounts?
I would think that would be quite a bit simpler than the printer idea.
Maybe Noteblock peripheral? Acts like either a Noteblock itself would via OpenPeripherals, or like one of various mods' Iron Note Blocks.
What about using either Jasper or just a STT and TTS service on their own to make a "Chatbox"?

Edited by Selim, 15 February 2016 - 03:37 AM.


#58 CoderPuppy

  • Members
  • 121 posts

Posted 02 August 2016 - 03:41 AM

I've added a bunch of new features:

  • CUPS printers (actually somewhat old)
  • Term munging: use all of the CC characters in Unicode terminals
  • Font generation: use the actual characters from CC
  • Term colors: custom colors
  • Mouse (only SGR 1006, so it won't work in old terminals and urxvt)
  • key_up

Look at the OP for instructions.

#59 golem cur

  • Members
  • 6 posts

Posted 02 August 2016 - 08:43 PM

This is really awesome I really like this :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users