1
0
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:
Joshua M. Clulow 2020-05-05 08:05:02 +00:00 committed by Garrett D'Amore
parent e277d9c03b
commit 157ccd71a2

View File

@ -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
}