Code Monkey home page Code Monkey logo

simple-term's Introduction

simple-term

Simple vte-based terminal

Shortcuts

  • Ctrl-Shift-C: Copy
  • Ctrl-Shift-V: Paste
  • Ctrl-Shift-S: Copy console output to a temporary file, open in $EDITOR
  • Ctrl-+: Increase font size
  • Ctrl--: Decrease font size

Other features

  • drop text
  • drop filenames from a file manager and get them formatted as command line arguments
  • warn when closing terminal windows with running subprocesses
  • ctrl-click on links to open them in a webbrowser
  • xterm-compatible command line interface

Packages for Fedora Linux

Packages for all current versions of Fedora Linux can be found in Copr:

sudo dnf copr enable mh21/simple-term
sudo dnf install simple-term

simple-term's People

Contributors

croissanne avatar martinpitt avatar mh21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simple-term's Issues

[packit] Invalid config

Failed to load packit config file:

Cannot parse package config: ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}).

For more info, please check out the documentation or contact the Packit team.

Error when compiling Cannot convert from ``char[]' to `unowned uint8[]?'

make error

  VALAC    simple_term_vala.stamp
simple-term.vala:235.33-235.67: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
            terminal.feed_child(selection_data.get_text().to_utf8());
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simple-term.vala:237.33-237.81: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
            terminal.feed_child(convert_uris(selection_data.get_uris()).to_utf8());
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simple-term.vala:88.13-88.31: warning: `Vte.Terminal.spawn_sync' has been deprecated since 0.48
Compilation failed: 2 error(s), 1 warning(s)
make: *** [Makefile:449: simple_term_vala.stamp] Error 1

dependency versions

vte291-0.66.1
vte291-devel-0.66.1
libvala-0.54.3
vala-0.54.3
gtk3-devel-3.24.30
gtk3-3.24.30

I'm on Fedora 35.

workaround

No idea if this is a proper fix or not.

diff --git a/simple-term.vala b/simple-term.vala
index 5f89073..4a15a16 100644
--- a/simple-term.vala
+++ b/simple-term.vala
@@ -232,9 +232,9 @@ class TerminalWindow : Gtk.Window
         // this is the only way to get a usable target list
         Gdk.Atom[] targets = { selection_data.get_target() };
         if (Gtk.targets_include_text(targets)) {
-            terminal.feed_child(selection_data.get_text().to_utf8());
+            terminal.feed_child((uint8[])selection_data.get_text().to_utf8());
         } else if (Gtk.targets_include_uri(targets)) {
-            terminal.feed_child(convert_uris(selection_data.get_uris()).to_utf8());
+            terminal.feed_child((uint8[])convert_uris(selection_data.get_uris()).to_utf8());
         }
         Gtk.drag_finish(context, true, false, time);
     }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.