Skip to content

Commit

Permalink
Update Terminal.osl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistium authored Jul 28, 2024
1 parent 110db2a commit ae37ecf
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions OSL Programs/apps/System/Terminal.osl
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,37 @@ terminal = []
canenter = True
input_1 = null
permission "request" "terminal"
mainloop:


prim = user.theme.primary
seco = user.theme.secondary
tert = user.theme.tertiary
txtc = user.theme.text
window_colour = user.theme.background

mainloop:
if new_network_data (
msg = network_data_from + "> " + network_data
terminal.append(msg)
new_network_data = false
)

loops = terminal.len
c #222
c prim
frame window_width / -2 window_height / 2 - 40 window_width / 2 window_height / -2 loops + 1 * 30

c #468058
count = 0
loc 2 2 10 0
loop loops (
count ++
for count loops (
loc 2 2 10 count * -30 + scroll_y
text terminal.[count].str 10
text terminal[count].str 10
)
set_x window."left" + 10
set_x window.left + 10
change_y -30
text user_start 10
set_x user_start.len * 5
c window_colour
input window_width - ( user_start.len + 2 * 10 ) 30 1 null null #468058
input window_width - (user_start.len + 2 * 10) 30 1 null null #468058
frame "clear"
if "enter".onpress (
last = input_1
Expand All @@ -51,8 +57,8 @@ if "enter".onpress (
if "up arrow".pressed "input_1 = last"

loc 999 2 0 -20
square window_width 30 10 : c#111
square window_width 30 10 : c#prim
loc 2 2 10 -20
text "Terminal" 10 : c#fff
text "Terminal" 10 : c#txtc

import "win-buttons"

0 comments on commit ae37ecf

Please sign in to comment.