syncterm 1.1 (BBS access software)

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

syncterm 1.1 (BBS access software)

Post by fatdoguser »

The new 1.1 release of syncterm (from gslapt) works well. Supports RIP ...etc. type BBS images. Here's one I snapped via the (telnet) blackflag.acid.org BBS, sixel images section

Image

zmodem upload/downloads also worked OK.

fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

I didn't know that native xterm supports sixel images

Install xterm from gslapt, run it with

/usr/bin/xterm -ti 340 -fa "Monospace" -fs 14

(the monospace font and 14 font size are optional, I find the default font to be too small, its the -ti 340 switch that enables sixel image support/rendering).

and within that xterm just cat a .sixel image ... and the image is visible.

You can use a online image converter to convert png (whatever) to sixel (I used https://convertio.co/png-sixel/)

Attached is a .sixel file that's gzip compressed (so uncompress it first)

xterm-sixel.jpg
xterm-sixel.jpg (79.46 KiB) Viewed 1343 times
Attachments
county-clare-ireland.sixel.gz
(168.34 KiB) Downloaded 34 times
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

Except for the initial screen, where you are prompted to press esc twice and the display is somewhat jumbled, this works relatively well ...

Install xterm from gslapt.
Create a script in /root containing ...

Code: Select all

#!/bin/sh
export TERM=linux
export COLORTERM=linux
xterm -ti 340 -fa "Monospace" -fs 14 -e telnet blackflag.acid.org

make the script executable and then in rox click on that file to run it. Once the window opens its better to maximize that.

You'll have to create a account to access the BBS, a idea might be to add a comment line in that script with the userid and password you used.

For .sixel image examples viewing select option 1 when logging in (Black Sails ANSI Theme). At the main menu once you've logged in its the Z Sixel Image Gallery choice. Of those the 'B' choice shows a image of the person who runs the BBS (Hawk Hubbard).

For file uploading/downloading its easier/better if you use syncterm (also available in Fatdog's gslapt) as that includes zmodem.

Worked even if you route via ssh i.e. provided the above is setup/installed on your local system, then ssh into another boxes cli where xterm is a sym link to urxvt (not native xterm), and from that command prompt telnet blackflag.acid.org .... and the .sixel images were viewable.

fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

ssh'd into another box using a xterm -ti 340 terminal .... twice, so I had two separate cli sessions on that box. Running 'tty' indicated which was /dev/pts/0 and which was /dev/pts/1. From the /dev/pts/1 tty session I could cat some.sixel >/dev/pts/0 ... and the image displayed correctly within the other terminal session. So you could have such a dual cli combination with one being for images, the other for control/actions - such as running dialog's. In the following image I cat the sixel image to the other xterm and then ran dialog --pause wait 8 30 30 ... to show a dialog with that xterm, and all via ssh into another box

dual-xterm-sixel.jpg
dual-xterm-sixel.jpg (44.04 KiB) Viewed 1310 times
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

xterm-sixel.png
xterm-sixel.png (49.37 KiB) Viewed 1286 times

Or rather than uncompressing the attached fatdog.sixel.gz file,
zcat fatdog.sixel.gz

Attachments
fatdog.sixel.gz
(9.66 KiB) Downloaded 46 times
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

step
Posts: 551
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 59 times
Been thanked: 198 times
Contact:

Re: syncterm 1.1 (BBS access software)

Post by step »

I didn't know either (that xterm can do sixtel). I use my own build of the suckless terminal, which supports sixtel (needs a patch to do so). To be honest, I have found no practical use for sixtel pictures at the terminal. But it's amusing. Thanks for the fatdog picture.

fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

Handy for BBS viewing, as sixel seems to be on the rise

Instead of the xterm -ti 340 switch, if you add to .Xresources

Code: Select all

xterm*decTerminalID: vt340
xterm*numColorRegisters: 256
xterm*sixelScrolling: 1
xterm*sixelScrollsRight: 1

(either reboot or run xrdb ./.Xresources after edits) and it sets xterm up to automatically support the Dec 340 (sixel)

User avatar
Sofiya
Posts: 2324
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1494 times
Been thanked: 1570 times

Re: syncterm 1.1 (BBS access software)

Post by Sofiya »

Code: Select all

[Desktop Entry]
Name=XTerm
#GenericName=Terminal
Comment=standard terminal emulator for the X window system
Exec=xterm -ti 340 -fa "Monospace" -fs 10
Terminal=false
Type=Application
Encoding=UTF-8
Icon=xterm-color_48x48
Categories=System;TerminalEmulator;
Keywords=shell;prompt;command;commandline;cmd;
StartupWMClass=XTerm

Code: Select all

neofetch --sixel /usr/share/backgrounds/226-2264711_archlinux-wallpaper.png
Attachments
Снимок экрана.png
Снимок экрана.png (96.54 KiB) Viewed 1209 times

KL-Linux
KL LINUX Simple fast free

fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

xterm has a lot of menu options in the ctrl left, middle or right mouse button clicks

For me adding

XTermSimpleMenufont: -misc-gelasio-medium-r-normal--0-160-0-0-p-0-iso8859-15

to ~/.Xresources and running xrdb ./.Xresources ... presents a nicer font size for those menus

On ctrl left mouse press/hold there's even a option to dump to svg (image), as well as toggling the xterm to full-screen ...etc. (along with Secure Keyboard ... that upon being toggled inverts the background/foreground colors i.e. for when entering passwords).

jamesbond
Posts: 720
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 406 times

Re: syncterm 1.1 (BBS access software)

Post by jamesbond »

Interesting. Apart from the sixel support, what do you think is the difference between urxvt and xterm? Feature-wise, memory-consumption, customability, etc. I used xterm very sparingly (=almost never) and used mostly urxvt, but if xterm turns out to be better, perhaps we can have it as the default terminal in the future release ...

fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

jamesbond wrote: Mon Dec 11, 2023 2:42 am

Interesting. Apart from the sixel support, what do you think is the difference between urxvt and xterm? Feature-wise, memory-consumption, customability, etc. I used xterm very sparingly (=almost never) and used mostly urxvt, but if xterm turns out to be better, perhaps we can have it as the default terminal in the future release ...

@jamesbond

urxvtd is more efficient, and urxvt is core to the as-is Fatdog, changing it could be inclined to introduce other problems in other code/scripts. Old style Xdefaults configuration is also more awkward IMO.

Access to xterm via gslapt is good enough. Perhaps also adding yaft ... that works in a framebuffer and also supports sixel images, that's not in gslapt at present but is a simple compile.

Attached is a sfs that if you click to open it in rox, then click to run the nc-server file within that, starts netcat listening on port 4444. Note that boxes IP address (ifconfig) and then from another box with proper xterm installed from gslapt start it by running

Code: Select all

xterm -fa Monospace -fs 9 -bg black -fg white -ti vt340

and at the command prompt connect to that netcat server

Code: Select all

nc <ip of nc-server box>:4444

Or you can even do that all on the same box

Code: Select all

nc localhost:4444

Modify/refine/extend the cove.sh script that nc-server invokes as you see fit. You can use a online png to sixel converter to add in whatever additional .sixel images you might like. I set those already in the sfs to use a 640x480 image size (mtpaint scale image). Or capture the key pressed to flip to the next image ... to invoke whatever action. Maybe change it to use telnet instead of netcat, or even ssh/sshd.

yaft in the framebuffer is interesting
yaft /bin/sh
as the images look like old style BBS's (full screen) if you use a kernel=/vmlinux vga=ask type boot parameter to set the resolution to 640x480x16 before running yaft /bin/sh and net cat to the server.

Fun and pass-time.

Attachments
bbs.sfs
(468 KiB) Downloaded 32 times
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

In case you're lazy, attached is yaft for fatdog 901 that I compiled. A actual gzip so gzip -d it first and then drop it into /usr/bin or somewhere in your existing PATH

Then exit X (ctrl-alt-backspace) and run yaft /bin/sh ... and then you'll be able to nc to the server as I outlined in my previous post and see the images.

YMMV .. i.e. subject to what graphics card/system you have setup.

Attachments
yaft.gz
(183.5 KiB) Downloaded 24 times
fatdoguser
Posts: 177
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 80 times

Re: syncterm 1.1 (BBS access software)

Post by fatdoguser »

step wrote: Sat Dec 09, 2023 10:01 pm

I didn't know either (that xterm can do sixtel). I use my own build of the suckless terminal, which supports sixtel (needs a patch to do so). To be honest, I have found no practical use for sixtel pictures at the terminal. But it's amusing. Thanks for the fatdog picture.

@step Another thing I didn't know either, bash can detect mis-types/spellings, disabled by default however

Code: Select all

shopt -s cdspellshopt -s cdspell

enables it

cd /archve instead of cd /archive and rather than a not found it changes to the archive folder

Somewhat redundant however if you use tab auto-completion (cd arc <tab> <enter>)

Post Reply

Return to “Software”