Skip to content

Commit 9148eb2

Browse files
author
Díaz Urbaneja Víctor Diego Alejandro
committed
Added support for arguments
1 parent de8eddf commit 9148eb2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

moonterm.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ utils = require("libraries.utils")
1515
lgi = require("lgi")
1616
Gtk = lgi.require('Gtk', '3.0')
1717
Gdk = lgi.require('Gdk', '3.0')
18-
Vte = lgi.Vte
19-
GLib = lgi.GLib
18+
Vte = lgi.require('Vte', '2.91')
19+
GLib = lgi.require('GLib', '2.0')
2020

2121
app = Gtk.Application()
2222
term = Vte.Terminal()

src/moonterm-app.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
about_window = Gtk.AboutDialog ({
1010
program_name = 'Moonterm',
11-
version = '2.0',
11+
version = '3.0',
1212
copyright = 'Díaz Urbaneja Víctor Diego Alejandro\n Copyright © 2021',
1313
comments = 'a minimalist and customizable terminal in lua',
1414
website = 'https://github.com/moonsteal/moonterm',
@@ -57,7 +57,8 @@ function app:on_activate()
5757
dialog_config.child.entry_interpreter.text = conf.moonterm.interpreter
5858
main_window:set_titlebar(headerbar)
5959
main_window.child.scroll:add(term)
60-
main_window.set_icon_name(main_window,'terminal')
60+
main_window:set_icon_name('terminal')
61+
if arg[1] then term:feed_child_binary(arg[1] .. "\n") end
6162
if conf.moonterm.quake_mode == true then
6263
main_window.decorated = false
6364
main_window:resize(Gdk.Screen.width(), Gdk.Screen.height()*(50/100))

src/moonterm-dialog.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content = Gtk.Box {
1515
orientation = 'VERTICAL',
1616
spacing = 5,
1717
border_width = 5,
18-
Gtk.Box {
18+
Gtk.Box {
1919
orientation = 'HORIZONTAL',
2020
Gtk.Label {
2121
label = " Interpreter : ",
@@ -25,7 +25,7 @@ content = Gtk.Box {
2525
id = 'entry_interpreter'
2626
}
2727
},
28-
Gtk.Box {
28+
Gtk.Box {
2929
orientation = 'HORIZONTAL',
3030
spacing = 5,
3131
border_width = 5,

0 commit comments

Comments
 (0)