vte
Version, currently 0.1.01 version
- 0.1.0latestJul 23, 2023
github.com/hugopl/vte.cr
Crystal bindings for VTE library
5 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
vte:
github: hugopl/vte.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
1.8.2- License
- MIT
- Author
- Hugo Parente Lima
Dependencies
Runtime Dependencies
- gtk4*github: hugopl/gtk4.cr
README
Crystal VTE bindings
VTE is a GTK library that provides a GTK Widget for terminal emulators.
Installation
-
Add the dependency to your
shard.yml:dependencies: vte: github: hugopl/vte.cr -
Run
shards install
Usage
require "vte"
class App < Gtk::Application
@[GObject::Virtual]
def activate
window = Gtk::ApplicationWindow.new(self)
window.title = "Basic Terminal"
window.set_default_size(1024, 480)
terminal = Vte::Terminal.new
terminal.feed("Crystal VTE bindings! 🎉️")
window.child = terminal
window.present
end
end
exit(BasicTerminalApp.new.run)
To spawn a process, e.g. bash, use the Terminal#spawn_async method, see examples/basic_terminal.cr.
Contributing
- Fork it (https://github.com/hugopl/vte.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Hugo Parente Lima - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jul 23, 2023
- Commit
8af663b7ed94- Crystal
1.8.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/hugopl/vte.cr
Metadata
- Created
- Aug 13, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1