[UNAPI] - Telnet Client

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

By Piter Punk

Master (205)

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

Master (175)

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... :)

Quote:

-------------- 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

Master (175)

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 (2067)

karloch's picture

12-12-2019, 19:36

It is so nice to see updates Smile

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