mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
terminals: move the import into tscreen_unix.go
(Rationale: we might want to use a *much* smaller database for systems that have a fixed set of strings, such as xterm.js.)
This commit is contained in:
parent
ecac43f113
commit
9a52dc2a4e
@ -33,8 +33,6 @@ import (
|
|||||||
|
|
||||||
"github.com/gdamore/tcell/v2/terminfo"
|
"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
|
// NewTerminfoScreen returns a Screen that uses the stock TTY interface
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2021 The TCell Authors
|
// Copyright 2024 The TCell Authors
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use file except in compliance with the License.
|
// you may not use file except in compliance with the License.
|
||||||
@ -17,6 +17,11 @@
|
|||||||
|
|
||||||
package tcell
|
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
|
// initialize is used at application startup, and sets up the initial values
|
||||||
// including file descriptors used for terminals and saving the initial state
|
// including file descriptors used for terminals and saving the initial state
|
||||||
// so that it can be restored when the application terminates.
|
// so that it can be restored when the application terminates.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user