mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-26 13:48:53 +08:00
fix build on illumos after Beep() API
The build for the "solaris" and "illumos" tags appears to have been broken by commit 8ec73b6fa6c543d5d067722c0444b07f7607ba2f, which introduced the Beep() API. Restore functionality by using the same implementation as every other UNIX family platform.
This commit is contained in:
parent
e277d9c03b
commit
157ccd71a2
@ -1,6 +1,6 @@
|
||||
// +build solaris
|
||||
// +build solaris illumos
|
||||
|
||||
// Copyright 2019 The TCell Authors
|
||||
// Copyright 2020 The TCell Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use file except in compliance with the License.
|
||||
@ -115,3 +115,8 @@ func (t *tScreen) getWinSize() (int, int, error) {
|
||||
}
|
||||
return int(wsz.Col), int(wsz.Row), nil
|
||||
}
|
||||
|
||||
func (t *tScreen) Beep() error {
|
||||
t.writeString(string(byte(7)))
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user