|
|
@ -746,8 +746,8 @@ func (t *TextView) write(p []byte) (n int, err error) {
|
|
|
|
// fmt.Println(tv.GetText(false))
|
|
|
|
// fmt.Println(tv.GetText(false))
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Note that using the batch writer requires you to manage any issues that may
|
|
|
|
// Note that using the batch writer requires you to manage any issues that may
|
|
|
|
// arise from concurrency yourself. See
|
|
|
|
// arise from concurrency yourself. See package description for details on
|
|
|
|
// https://github.com/rivo/tview/wiki/Concurrency for details.
|
|
|
|
// dealing with concurrency.
|
|
|
|
func (t *TextView) BatchWriter() TextViewWriter {
|
|
|
|
func (t *TextView) BatchWriter() TextViewWriter {
|
|
|
|
t.Lock()
|
|
|
|
t.Lock()
|
|
|
|
return TextViewWriter{
|
|
|
|
return TextViewWriter{
|
|
|
|