|
SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/11 11:19
#1 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
Screenshots:
https://www.dropbox.com/sh/114q39ukaho ... KS7AT5S8B7R9Va8R9D4a?dl=0 It is based around the same libssh2 library that ssh2-handler and uses libtmt for the terminal emulation. Currently it is possible to login to an SSH server and type in and run some simple commands (as can be seen from the screenshots), but there is still quite a bit of work to do. Some things that still need to be fixed: - colour support - non-ascii characters are rendered incorrectly - special keys like cursor keys and page up/down do not work - bold characters are not rendered correctly because they seem to need more space Right now text rendering is done using IGraphics->Text() because this was the simplest way to implement it but I'm considering switching it out for bullet API so that the program can have full UTF support. |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/11 11:32
#2 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5539
|
Wow, at last :) if you need testers let us know
|
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/11 11:55
#3 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/29 7:57 Posts: 145
|
@salass00
Cool! When it's done i'm sure it will be of lots of use for many nerds. I would appreciate if you gives it full UTF support. |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/11 19:07
#4 |
---|---|---|
Just popping in
![]() ![]() Joined:
2014/10/29 11:00 From Finland
Posts: 17
|
Ooh nice! If it is able to render Irssi correctly then yes please :)
|
|
_________________
X5000, Peg2, mA1 |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/11 20:37
#5 |
---|---|---|
Site Builder
![]() ![]() Joined:
2006/12/2 23:57 From Athens
Posts: 539
|
@salass00
Great news... Looking forward to test it and use it more. Hope link files can show the linked path and can be used for navigation. |
|
_________________
Amiga-Look.org - Beautify your Workbench |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/12 8:37
#6 |
---|---|---|
Just popping in
![]() ![]() Joined:
2008/5/22 19:13 From Belgium
Posts: 105
|
Nice salass00!
|
|
_________________
A1200PPC/Sam440ep/Sam460ex/X1000/X5020 OS4.1 |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/12 16:00
#7 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
Some progress:
I fixed bold characters getting clipped by adding font->tf_BoldSmear to the space reserved for characters horizontally. I also added some code for converting unicode characters into the local character sets, replacing with '?' any characters that don't have a matching representation. After implementing the latter I noticed that the libtmt code for parsing utf-8 multi-byte characters doesn't seem to be working correctly, so it is something I will have to look into... |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/12 17:59
#8 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
The fix for the utf-8 parsing was just that I needed to add:
setlocale(LC_CTYPE, "C-UTF-8"); in my start code to enable utf-8 support in newlib. |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/12 22:05
#9 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/26 16:47 Posts: 1431
|
NICE one Salass00!!!
Does it support ansi colors as well? |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 3:41
#10 |
---|---|---|
Just popping in
![]() ![]() Joined:
2008/8/21 0:11 Posts: 70
|
+1 from me! I'd love the ability to SSH out from my OS4 machines. Looking forward to the first release.
Keep up the great work. Bill "tekmage" Borsari |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 11:11
#11 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
@spotUP
ANSI colors are now supported: The libtmt color handling is a bit weird in that TMT_COLOR_DEFAULT is -1 and the first ANSI color (TMT_COLOR_WHITE) is 1, but when a new terminal is created all the cells are set to have their foreground and background colors set to zero which is not a defined value. It took me a while to realise why my first compile with color support wasn't working correctly because I assumed I would only be seeing color values defined in the tmt_color_t enum. |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 11:14
#12 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5539
|
Oh looks cool!
As i see it independent from os4's console app running in its own window, so scroolbar/history/buffer feature need to be implemented the same as any other functionality which may need in that kind of app ? Or maybe it possible connect it with os4's console somehow ? |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 11:39
#13 |
---|---|---|
Just popping in
![]() ![]() Joined:
2008/5/22 19:13 From Belgium
Posts: 105
|
So we could remotely run Midnight Commander ?
|
|
_________________
A1200PPC/Sam440ep/Sam460ex/X1000/X5020 OS4.1 |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 13:18
#14 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2009/5/1 17:57 From Czech Republic
Posts: 1059
|
@salass00
I have sent you a small donation. And may I encourage everyone to do the same from Fredrik's website? |
|
_________________
Smoke me a kipper, I'll be back for breakfast! AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 15:47
#15 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
Cursor keys as well as page up/page down and insert keys are now working. I still haven't gotten the home and end keys to work correctly though (I tried using "\033[H" and "\033[Y" for them as described in "tmt.h" but the cursor jumps around in very odd ways rather than going to the beggining/end of the current line as it's supposed to).
@trixie Thanks for the donation! |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 17:27
#16 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2010/6/17 14:04 From Waterbury, Connecticut (USA)
Posts: 259
|
@salass00
a massive thanks for this. i've been wanting a proper terminal for *so* long. i sent a small donation your way as well. thank you for all your contributions to the amiga scene. -- eliyahu |
|
_________________
"How do you know I’m mad?" said Alice. "You must be," said the Cat, "or you wouldn’t have come here." |
||
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 18:00
#17 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
@eliyahu
Thanks for the donation! |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 2/13 22:50
#18 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/27 10:47 From Gravity well
Posts: 654
|
If the download doesn't start, replace the zero in the end of the URL by 1
|
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 4/6 5:52
#19 |
---|---|---|
Just popping in
![]() ![]() Joined:
2008/8/21 0:11 Posts: 70
|
Hey Salass00,
Any update on this project? Can't wait for working SSH on my X5K! Bil "tekmage" Borsari |
|
|
Re: SSH client for AmigaOS with builtin terminal emulation |
Posted on: 4/10 10:20
#20 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1690
|
@tekmage
I've been working on a font backend to transparently handle outline fonts via bullet API (for full unicode support) and regular bitmap fonts via graphics library. The bullet API code is however not working at the moment because both of the two fonts I've tried ("Bitstream Vera Sans Mono.font" and "DejaVu Sans Mono.font") return FALSE for OT_IsFixed and zero values for OT_YSizeFactor and OT_SpaceWidth. |
|