-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.command
More file actions
executable file
·49 lines (39 loc) · 1.33 KB
/
launch.command
File metadata and controls
executable file
·49 lines (39 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Get the directory where this script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Change to the project directory
cd "$DIR"
# Clear terminal and display a launching message
clear
echo "================================"
echo " Launching Terminal Link..."
echo "================================"
echo ""
echo "A new terminal window will open soon."
echo "Close that window to terminate your session."
echo ""
# Launch a new terminal window with the game
osascript -e '
tell application "Terminal"
# Create new window with proper settings
do script "cd \"'"$DIR"'\" && clear && export TERM=xterm-256color && stty rows 35 cols 100 && cargo run"
# Wait a moment for window to be created
delay 0.5
# Configure the new window
tell front window
set background color to {0, 0, 0}
set normal text color to {65535, 65535, 65535}
set font name to "Px437 IBM VGA 9x16"
set font size to 18
# Set window position and size more reliably
set position to {100, 100}
set size to {800, 600}
# Force terminal dimensions
do script "resize -s 35 100" in front tab
end tell
# Bring Terminal to front
activate
set custom title to "SYN-TEC: Remote Session"
end tell
'
echo "Connection established."