Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
Command line - A gb terminal
Un GB terminal emulator
Hi, today i propose to you to test gb.form.terminal component to create a terminal emulator in gambas 3.14 this terminal use VT100 classic protocol. You can insert a terminalview since your widget tab on the right as bellow : but first you need to choose gb.form.terminal component in property of your project. It's impossible to write text directly in terminal, that's why we will write in textbox and send to terminal with RETURN press. For the moment, it seems not finished component. It's not possible to write usual command like ls, or cp , cd.. or cd home. Here you find code of this application. Public Sub Form_Open() Me.Center() tview.Background = Color.White tview.Foreground = Color.Black TextBox1.SetFocus() End Public Sub Mquit_Click() Me.Close() End Public Sub TextBox1_KeyPress() Select Case Key.Code Case Key.Enter send() Case Key.Return send() End Select End Private Sub send() tview.Shell(TextBox1.Text) TextBox1.Text = Null TextBox1.SetFocus() End one tutorial who helped me to write this tutorial. : https://www.bitkistl.com/2020/03/customizing-gbterminal.html Thanks for your attention. Creation date : 05/02/2022 @ 22:40 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|