wvdakker / gtkterm

GTKTerm: A GTK+ Serial Port Terminal
GNU General Public License v3.0
104 stars 35 forks source link

Added option for the ESC character to clear screen and pt_BR translation #57

Closed JuniorPolegato closed 1 year ago

JuniorPolegato commented 1 year ago

Hi!

It was added option for the ESC character to clear screen, as well as "CR LF auto". Also pt_BR translation.

I tested on Debian Trixie (testing/13), all packages updated and pt_BR localized, replacing the gtkterm package with this one, compiled and packaging with:

# in the same directory where gtkterm was cloned
mkdir deb
cd deb

# make sure deb-src is enabled in /etc/apt/sources.list
apt source gtkterm  
cd gtkterm-1.2.?/

# root instalation
sudo apt-get install quilt
sudo apt-get build-dep gtkterm
sudo apt-get install devscripts

export QUILT_PATCHES=debian/patches
quilt new 99_esc_clear_screen.patch
quilt add src/buffer.c src/buffer.h src/interface.c src/interface.h \
          src/serial.c src/serial.h src/term_config.c src/term_config.h \
          src/user_signals.c po/LINGUAS po/pt_BR.po

cp -auv ../../gtkterm/src/* src/
cp -auv ../../gtkterm/po/*.po ../../gtkterm/po/LINGUAS po/

quilt refresh

export EMAIL=your@email  # replace your@email with yours
dch -i "Added functionality to the ESC character ('\\x1b' - 27) to clear the screen"
dpkg-source --commit
debuild -uc -us

cd ..
sudo dpkg -i gtkterm_1.2.?-*.deb # root instalation
#or
# cp -v gtkterm_1.2.?-*.deb /tmp; su - -c "dpkg -i /tmp/gtkterm_1.2.?-*.deb"