Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Command line - A gb terminal

Un  GB terminal emulator


term01.jpg

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 :

 
term00.jpg


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
Last update : 05/02/2022 @ 22:40
Category : Command line
Page read 1672 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by spheris 05/02/2022 @ 22:44

J'ai oublié de préciser que vous devez avoir le composant gb.form.terminal de coché dans les propriétés de votre projet.

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^