Skip to content

Commit

Permalink
fix: use Jetbrains Mono for terminal view
Browse files Browse the repository at this point in the history
  • Loading branch information
ianatha committed Nov 11, 2023
1 parent 464f8ce commit 87c68bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/io/atha/bababasic/ActivityRun.kt
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ class ActivityRun : AppCompatActivity() {
)

binding.terminal.setBackgroundColor(Color.BLACK)
binding.terminal.setTextSize(30)
binding.terminal.setTypeface(Typeface.MONOSPACE)
val typeface = Typeface.createFromAsset(assets, "JetBrainsMono-Regular.ttf")
binding.terminal.setTextSize(16)
binding.terminal.setTypeface(typeface)
binding.terminal.attachSession(session)
binding.terminal.setTerminalViewClient(viewClient)
session.initializeEmulator(30, 10)
session.initializeEmulator(1, 1)
setContentView(binding.root)
viewClient.onCreate()
}
Expand Down

0 comments on commit 87c68bd

Please sign in to comment.