Skip to content

Commit

Permalink
terminals: move the import into tscreen_unix.go
Browse files Browse the repository at this point in the history
(Rationale: we might want to use a *much* smaller database for
systems that have a fixed set of strings, such as xterm.js.)
  • Loading branch information
gdamore committed Mar 4, 2024
1 parent ecac43f commit 9a52dc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tscreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import (

"github.com/gdamore/tcell/v2/terminfo"

// import the stock terminals
_ "github.com/gdamore/tcell/v2/terminfo/base"
)

// NewTerminfoScreen returns a Screen that uses the stock TTY interface
Expand Down
7 changes: 6 additions & 1 deletion tscreen_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 The TCell Authors
// Copyright 2024 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
Expand All @@ -17,6 +17,11 @@

package tcell

import (
// import the stock terminals
_ "github.com/gdamore/tcell/v2/terminfo/base"
)

// initialize is used at application startup, and sets up the initial values
// including file descriptors used for terminals and saving the initial state
// so that it can be restored when the application terminates.
Expand Down

0 comments on commit 9a52dc2

Please sign in to comment.