History log of /haiku/src/apps/serialconnect/SerialWindow.cpp
Revision Date Author Comments
# 3a6bc1cf 02-Aug-2023 PulkoMandy <pulkomandy@pulkomandy.tk>

SerialConnect: implement clipboard paste

Change-Id: Iaddb6588afa774bcffad9713f280a0078784605a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6770
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# ab05d368 17-Mar-2019 sushilhub <sushil.bit.cse@gmail.com>

src/apps: style fixes

* add break statement to the last clause of switch/cases
* fix some other minor issues

Change-Id: I9ac3dac0cda0b14043b975938caea88b79bb749f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1299
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 2e6ca31c 07-May-2020 Murai Takashi <tmurai01@gmail.com>

SerialConnect: Add localization.

Add localization for menus, statusbar and system name.

Change-Id: I85ef95c1ff940c6d794f49a859ff1b696b866839
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2602
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 1eb38608 19-May-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: add a clear/reset menu.

Change-Id: I0435ba679e19094d201d65ac0c6290cd194ec344
Reviewed-on: https://review.haiku-os.org/c/1463
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 83776950 26-Aug-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix mixup of file panels

- Use separate file panels for "load" and "save" directions
- Change the message sent by the "load" panel according to the protocol
to use (it just forwards the one from the BMenuItem used to invoke it,
which already has the protocol information).


# 8bff17cf 26-Aug-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: support sending raw files

Add a generic FileSender interface, which XModemSender implements. Add a
new RawSender which implements the same interface.

The RawSender currently blocks the application thread while sending,
which is not a good idea. Will rework this when I allow cancelling
transfers before they complete.


# ce058fa0 16-Jul-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: implement XMODEM send.


# 96e59cca 28-Feb-2016 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: allow custom baudrates from the GUI


# 534d0e61 10-Nov-2015 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: allow to change line terminator

* It can now be used to send AT commands for example, which need \r
instead of \n.


# e0bf43c1 04-Apr-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Really fix baudrate menu

* Re-add removed baudrates in bc02619755
* Re-aligns menu values and *really* fixes
baudrate selection.


# bc026197 30-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Fix baudrate submenu

* kBaudrates is an int not a char
* Just look at first kBaudrates member to figure out array size.
* Drop a few *extremely* uncommon speeds that you'll never see to
shorten the list.


# d9e93152 09-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

SerialConnect: add scripting support

It's now possible to configure the serial port through scripting:
hey SerialConnect set databits to 8
hey SerialConnect set parity to even
etc.

More useful is the ability to connect and disconnect from the port:
hey SerialConnect get port # returns "usb0"
hey SerialConnect set port to usb0
hey SerialConnect delete port

This allows a script to automatically disconnect SerialConnect, do
something with the serial port, and then reconnect SerialConnect. This
can be used for example to run a bootloader and update a firmware
through the same serial port used for debugging, something that's not
easily possible on other systems.


# b59ed154 12-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: implement scrollback.


# 492ac416 22-Jan-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes CID 1162805, 1162804, 1162773, 1162759.


# e2367275 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix baudrate settings save.

There was a mixup of using the baudrate value (eg 115200), constant
(B_115200_BPS = 17) and position in the menu (18), leading to the
baudrate setting not being saved and restored properly.


# c19e7bb3 22-Nov-2013 Urias McCullough <umccullough@gmail.com>

Remove all menu items in unambiguous way on x86_64

Signed-off-by: Rene Gollent <rene@gollent.com>


# 3cfd6956 20-Nov-2013 Rene Gollent <rene@gollent.com>

Revert "serialconnect: Fix gcc4 build"

This reverts commit 1eb5facaf43e5423e39cae752817f2d68881593e.


# 1eb5faca 20-Nov-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Fix gcc4 build

* SerialWindow.h mentions BFilePanel and needs the
include statement
* Patch submitted by Urias McCullough


# ccc6b9be 20-Nov-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make SerialConnect more complete

* Mark the current connected device, or disable "Disconnect" menu when
there is no connection.
* Save and restore serial port settings
* Improve drawing code: make sure the border around the termview is
repainted, and do not leave a 1px space between lines unpainted.


# 469e6cd2 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Log serial input to a file.


# 04434656 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Serial port configuration

* Dynamically update the serial port list in the connection menu when devices get added or removed
* Make the settings in the settings menu actually do something


# 47b44bbe 26-Jul-2012 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix SerialConnect gcc4 build.


# a2021bee 26-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Fix display for basic stuff.


# f441fd03 25-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Working serial connection.
Still need some work on displaying the right chars at the right place.


# dae0a4e0 23-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
* You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.


# e0bf43c16b891e3d41871a8300ba5f0322c525dc 04-Apr-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Really fix baudrate menu

* Re-add removed baudrates in bc02619755
* Re-aligns menu values and *really* fixes
baudrate selection.


# bc02619755adf013959bed2708c8b8fbaca4f83c 30-Mar-2015 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Fix baudrate submenu

* kBaudrates is an int not a char
* Just look at first kBaudrates member to figure out array size.
* Drop a few *extremely* uncommon speeds that you'll never see to
shorten the list.


# d9e931526c35e4b184c180d84d1684fb3a776cf8 09-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

SerialConnect: add scripting support

It's now possible to configure the serial port through scripting:
hey SerialConnect set databits to 8
hey SerialConnect set parity to even
etc.

More useful is the ability to connect and disconnect from the port:
hey SerialConnect get port # returns "usb0"
hey SerialConnect set port to usb0
hey SerialConnect delete port

This allows a script to automatically disconnect SerialConnect, do
something with the serial port, and then reconnect SerialConnect. This
can be used for example to run a bootloader and update a firmware
through the same serial port used for debugging, something that's not
easily possible on other systems.


# b59ed154866f94ab50fa95d10327dc9987d370e0 12-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: implement scrollback.


# 492ac4160ab1c3a9dfba827bcbae34f08494ee2d 22-Jan-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes CID 1162805, 1162804, 1162773, 1162759.


# e2367275a8c1ac6fd49c3925f39ec48ea2a7ded5 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix baudrate settings save.

There was a mixup of using the baudrate value (eg 115200), constant
(B_115200_BPS = 17) and position in the menu (18), leading to the
baudrate setting not being saved and restored properly.


# c19e7bb32bf9e03acc80b9fee496e9f762cc3720 22-Nov-2013 Urias McCullough <umccullough@gmail.com>

Remove all menu items in unambiguous way on x86_64

Signed-off-by: Rene Gollent <rene@gollent.com>


# 3cfd6956e97666e46bd97ed86783896451ae3a93 20-Nov-2013 Rene Gollent <rene@gollent.com>

Revert "serialconnect: Fix gcc4 build"

This reverts commit 1eb5facaf43e5423e39cae752817f2d68881593e.


# 1eb5facaf43e5423e39cae752817f2d68881593e 20-Nov-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

serialconnect: Fix gcc4 build

* SerialWindow.h mentions BFilePanel and needs the
include statement
* Patch submitted by Urias McCullough


# ccc6b9be5b6527d14bb35b6ce57dcb422c0422f0 20-Nov-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make SerialConnect more complete

* Mark the current connected device, or disable "Disconnect" menu when
there is no connection.
* Save and restore serial port settings
* Improve drawing code: make sure the border around the termview is
repainted, and do not leave a 1px space between lines unpainted.


# 469e6cd2280c0d42e37df77f331248d29a5b5a8b 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Log serial input to a file.


# 04434656afa98246c3c2122f710bb448afd03919 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Serial port configuration

* Dynamically update the serial port list in the connection menu when devices get added or removed
* Make the settings in the settings menu actually do something


# 47b44bbedb1a865f522191905b3d5f7067826691 26-Jul-2012 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix SerialConnect gcc4 build.


# a2021beee2e3391ebb2b2da1ed29438b6c4338e9 26-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Fix display for basic stuff.


# f441fd03b6a6b31341c3f1d58d30395d220bcf50 25-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Working serial connection.
Still need some work on displaying the right chars at the right place.


# dae0a4e0abda9ce3dff8e31007a8f66bc14421c8 23-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
* You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.