[UNAPI] - Telnet Client

Page 8/9
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9

By Piter Punk

Master (220)

Piter Punk's picture

11-12-2019, 20:48

Great!

Now I can connect to my machines again Smile
It's a very good telnet client.

Two questions:

1. Why it report itself as a xterm-color16 terminal? It's not full compatible with the xterm control codes and when the software tries to change the title of window and other xterm specific features the screen got a lot of garbage.
2. Do you have compile instructions? So it will be easier to try some customizations

Thanks!

By ducasp

Champion (347)

ducasp's picture

12-12-2019, 00:44

Piter Punk wrote:

Great!

Now I can connect to my machines again Smile
It's a very good telnet client.

Two questions:

1. Why it report itself as a xterm-color16 terminal? It's not full compatible with the xterm control codes and when the software tries to change the title of window and other xterm specific features the screen got a lot of garbage.
2. Do you have compile instructions? So it will be easier to try some customizations

Thanks!

1. Well, that was a test string that I've forgot to change... It should be ANSI and I will update it in the next release. Thanks for reminding me of this.

2. Yes: https://github.com/ducasp/MSX-Development/tree/master/UNAPI/... , readme tells it all... I mean, not all... In your fusion-c installation folder (mine is Windows and in C:\fusion-c), create a folder for this source code (i.e.: telnet) and then copy telnet.cbp, the src folder and all its contents to it. Make sure your fusion-c installation folder has hex2bin executable. If you don't wanna use CodeBlocks as a GUI for SDCC/Fusion-C, then you could extract the parameters from cbp project.

P.s.: this is the output when building from codeblocks, so that might help you to create your own makefile or bat file... :)

引用:

-------------- Clean: Release in Telnet (compiler: Small Device C Compiler)---------------

Cleaned "Telnet - Release"

-------------- Build: Release in Telnet (compiler: Small Device C Compiler)---------------

sdcc.exe --out-fmt-ihx --no-std-crt0 -mz80 --opt-code-speed --verbose --code-loc 0x180 --data-loc 0x0 --disable-warning 196 --allow-unsafe-read -I..\fusion-c\header -I"C:\Program Files\SDCC\include" -c src\print.c -o obj\Release\src\print.rel
sdcc.exe --out-fmt-ihx --no-std-crt0 -mz80 --opt-code-speed --verbose --code-loc 0x180 --data-loc 0x0 --disable-warning 196 --allow-unsafe-read -I..\fusion-c\header -I"C:\Program Files\SDCC\include" -c src\Telnet.c -o obj\Release\src\Telnet.rel
sdcc.exe --out-fmt-ihx --no-std-crt0 -mz80 --opt-code-speed --verbose --code-loc 0x180 --data-loc 0x0 --disable-warning 196 --allow-unsafe-read -I..\fusion-c\header -I"C:\Program Files\SDCC\include" -c src\UnapiHelper.c -o obj\Release\src\UnapiHelper.rel
sdcc.exe --out-fmt-ihx --no-std-crt0 -mz80 --opt-code-speed --verbose --code-loc 0x180 --data-loc 0x0 --disable-warning 196 --allow-unsafe-read -I..\fusion-c\header -I"C:\Program Files\SDCC\include" -c src\XYMODEM.c -o obj\Release\src\XYMODEM.rel
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c11 -I"..\fusion-c\header" -I"C:\Program Files\SDCC\include" -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_9_0 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=9 -D__SDCC_VERSION_PATCH=0 -D__SDCC_REVISION=11195 -D__SDCC_z80 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem "C:\Program Files\SDCC\bin\..\include\z80" -isystem "C:\Program Files\SDCC\bin\..\include" "src\XYMODEM.c"
sdcc: Generating code...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c11 -I"..\fusion-c\header" -I"C:\Program Files\SDCC\include" -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_9_0 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=9 -D__SDCC_VERSION_PATCH=0 -D__SDCC_REVISION=11195 -D__SDCC_z80 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem "C:\Program Files\SDCC\bin\..\include\z80" -isystem "C:\Program Files\SDCC\bin\..\include" "src\Telnet.c"
sdcc: Generating code...
src\print.c:37: warning 85: in function print unreferenced function argument : 's'
src\print.c:51: warning 85: in function printChar unreferenced function argument : 'c'
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c11 -I"..\fusion-c\header" -I"C:\Program Files\SDCC\include" -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_9_0 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=9 -D__SDCC_VERSION_PATCH=0 -D__SDCC_REVISION=11195 -D__SDCC_z80 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem "C:\Program Files\SDCC\bin\..\include\z80" -isystem "C:\Program Files\SDCC\bin\..\include" "src\print.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdasz80.exe -plosgffw "obj\Release\src\print.rel" "obj\Release\src\print".asm
sdcc.exe -L"C:\Program Files\SDCC\lib" -o bin\Release\Telnet.exe --out-fmt-ihx --no-std-crt0 -mz80 --opt-code-speed --verbose --code-loc 0x180 --data-loc 0x0 --disable-warning 196 --allow-unsafe-read ..\fusion-c\include\crt0_msxdos_advanced.rel ..\fusion-c\lib\msx2ansi.lib ..\fusion-c\lib\fusion.lib ..\fusion-c\lib\asm.lib obj\Release\src\print.rel obj\Release\src\Telnet.rel obj\Release\src\UnapiHelper.rel obj\Release\src\XYMODEM.rel
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c11 -I"..\fusion-c\header" -I"C:\Program Files\SDCC\include" -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_9_0 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=9 -D__SDCC_VERSION_PATCH=0 -D__SDCC_REVISION=11195 -D__SDCC_z80 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem "C:\Program Files\SDCC\bin\..\include\z80" -isystem "C:\Program Files\SDCC\bin\..\include" "src\UnapiHelper.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdasz80.exe -plosgffw "obj\Release\src\UnapiHelper.rel" "obj\Release\src\UnapiHelper".asm
sdcc: Calling assembler...
sdcc: sdasz80.exe -plosgffw "obj\Release\src\Telnet.rel" "obj\Release\src\Telnet".asm
sdcc: Calling assembler...
sdcc: sdasz80.exe -plosgffw "obj\Release\src\XYMODEM.rel" "obj\Release\src\XYMODEM".asm
sdcc: Calling linker...
sdcc: sdldz80.exe -nf "bin\Release\Telnet.lk"
Output file is bin\Release\Telnet.exe with size 47.19 KB
Running target post-build steps
cmd /c ren bin\Release\Telnet.exe Telnet.ihx
cmd /c ..\hex2bin -e com bin\Release\Telnet.ihx
hex2bin v1.0.12, Copyright (C) 2012 Jacques Pelletier & contributors
Lowest address = 00000100
Highest address = 000052D9
Pad Byte = FF
8-bit Checksum = E1
Process terminated with status 0 (0 minute(s), 15 second(s))
0 error(s), 2 warning(s) (0 minute(s), 15 second(s))

By ducasp

Champion (347)

ducasp's picture

12-12-2019, 16:07

Piter Punk wrote:

Great!

Now I can connect to my machines again Smile
It's a very good telnet client.

Two questions:

1. Why it report itself as a xterm-color16 terminal? It's not full compatible with the xterm control codes and when the software tries to change the title of window and other xterm specific features the screen got a lot of garbage.
2. Do you have compile instructions? So it will be easier to try some customizations

Thanks!

I've made 1.22 available, it fixes the terminal reporting as xterm, now it reports as ANSI:

https://github.com/ducasp/MSX-Development/raw/fc44f51b12a308...

Should be available on MSX-HUB once fr3nd merges my pull request as well :)

P.s.: I've improved build instructions and created a separate MD file for this information

https://github.com/ducasp/MSX-Development/blob/master/UNAPI/...

Thanks for reporting issues! :)

By karloch

Prophet (2090)

karloch's picture

12-12-2019, 19:36

It is so nice to see updates Smile

By ducasp

Champion (347)

ducasp's picture

31-01-2020, 18:50

Telnet v1.23 is available both on MSX-HUB as well on my github.

MSXHUB: HUB INSTALL TELNET or if you already have it HUB UPGRADE TELNET

GITHUB: https://github.com/ducasp/MSX-Development/releases/tag/TELNE...

Changes

  • Changed the way to handle keyboard input, Fusion-C removed support for the method I've used before.
  • Compiled with the new MSX2ANSI library, it fixes quite a few issues seen while acessing Linux or Busybox telnet servers.

With that now when connecting to a busybox or a Linux machine, clear work fine as well as brownsing the command history using arrow UP and arrow DOWN (before this change screen would not erase correctly due to lack of a few commands support and an error handling commands without parameters). ;)

By ducasp

Champion (347)

ducasp's picture

15-04-2020, 17:24

Telnet v1.30 is available both on MSX-HUB as well on my github.

MSXHUB using HUB.COM: HUB INSTALL TELNET, or, if you already have it, HUB UPGRADE TELNET
MSXHUB using HUBG.COM: If you have telnet installed, just select it in the menu and hit U key, if you don't, go to Remote tab by hitting R key and then go to the internet group hitting 4 key, select TELNET by hitting E key and then install it by hitting S key
GITHUB download binary: https://github.com/ducasp/MSX-Development/raw/master/UNAPI/T...
GITHUB Source Code: https://github.com/ducasp/MSX-Development/tree/master/UNAPI/...

Changes:

  • Made a few behavior changes, CTRL+B won't begin downloads anymore, CTRL+E won't exit anymore. Those keys will now be sent over the connection which might be useful when acessing a linux daemon. ;)
  • Now, to start a file transfer, press F1
  • Now, to exit the program, press F5
  • Now, the program by default DO NOT send CR/LF when enter is pressed, just CR, this makes it works with a few door games like LORD and also do not seem to hurt how it works with all BBS
  • Just in case just CR is giving you troubles, added possibility of changing CRLF behavior on the fly, press F3 to toggle it
  • Added possibility of changing ECHO behavior on the fly, press F2 to toggle it
  • By default, now, automatic pop-up of file transfer protocol selection will be disabled if the BBS send a DO BINARY in the initial handshake, the only type of BBS that this feature works is Synchronet, and it do not send DO BINARY
  • Compiled with new version of MSX2ANSI library that supports BEEPing when BELL is received
  • The new version of MSX2ANSI library also has contributions from Piter Punk. He has kindly fixed an issue with CSIm (no parameters, it was crashing) as well added support to reverse colors, and also fixed the wrong behavior of CSIm or CSI0m that was not properly reseting attributes. Thanks Piter!

Enjoy!

By S0urceror

Expert (125)

S0urceror's picture

16-04-2020, 19:20

Wow, amazed at all the development happening. Will try it out soon.

By ducasp

Champion (347)

ducasp's picture

24-04-2020, 19:40

Telnet v1.31 is available both on MSX-HUB as well on my github.

MSXHUB using HUB.COM: HUB INSTALL TELNET, or, if you already have it, HUB UPGRADE TELNET
MSXHUB using HUBG.COM: If you have telnet installed, just select it in the menu and hit U key, if you don't, go to Remote tab by hitting R key and then go to the internet group hitting 4 key, select TELNET by hitting E key and then install it by hitting S key
GITHUB download binary: https://github.com/ducasp/MSX-Development/raw/master/UNAPI/T...
GITHUB Source Code: https://github.com/ducasp/MSX-Development/tree/master/UNAPI/...

Changes:

  • General code cleaning. Removing unused variables, made the negotiation code more efficient and better to understand, as well as fixing old comments that were referring to stuff no longer used :)
  • Due to the better telnet negotiation code, along with a different way to detect a dead connection, the flow of ANSI animation and text rendering is smoother, specially on regular z80 clock and with Obsonet
  • If no portnumber is given, will assume default port (23)
  • Automatic detection of BBB's that misbehave on Telnet Protocol during file transfers (i.e.: based on Mystic) if the transfer protocol is YModem or YModem-G
  • There is a significant (50%) speed-up on YModem-G transfers when the BBS uses the proper TELNET protocol during file transfers (i.e.: every 0xFF byte is sent as 0xFF 0xFF) and the adapter allows for more than 3KB/s transfers (i.e.: SM-X, GR8NET... Sorry, Obsonet is not getting faster transfers)
  • Fixed an issue where SM-X wouldn't always properly handshake with the BBS during start-up, i.e.: HispaMSX wouldn't always detect terminal as ANSI capable

Enjoy!

By ducasp

Champion (347)

ducasp's picture

04-05-2020, 14:09

YouTube Video of Telnetv1.32 Acessing Linux

Telnet v1.32 is available both on MSX-HUB as well on my github.

MSXHUB using HUB.COM: HUB INSTALL TELNET, or, if you already have it, HUB UPGRADE TELNET
MSXHUB using HUBG.COM: If you have telnet installed, just select it in the menu and hit U key, if you don't, go to Remote tab by hitting R key and then go to the internet group hitting 4 key, select TELNET by hitting E key and then install it by hitting S key
GITHUB download binary: https://github.com/ducasp/MSX-Development/raw/master/UNAPI/T...
GITHUB Source Code: https://github.com/ducasp/MSX-Development/tree/master/UNAPI/...

Changes:

  • New version of MSX2ANSI library with better compatibility with nCurses applications running on host, changes in lib by PiterPunk
  • New version of MSX2ANSI library also fixes CSIJ behavior, fix done by me
  • New version of MSX2ANSI library allows to disable cursor while rendering text, this should get better speed on a few scenarios and a smoother screen rendering without cursor going all over the place during animation
  • Dedicated to the memory of GZip

I'm really grateful for Piter help, and I've decided to dedicate this version of the MSX Telnet Client to his cat, GZip, which unfortunately passed away last week and will surely be missed!

Enjoy!

By Piter Punk

Master (220)

Piter Punk's picture

04-05-2020, 17:43

ducasp wrote:

I'm really grateful for Piter help, and I've decided to dedicate this version of the MSX Telnet Client to his cat, GZip, which unfortunately passed away last week and will surely be missed!

Thank you, Oduvaldo!

We got really touched by this homage to Gzip.

I am happy in contribute to the enhancement of your TELNET application. And I believe that working fine as a Linux terminal will bring a few new users Smile

Page 8/9
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9