From 157ccd71a2eab7d03bfd817cd47a364d06aadc6a Mon Sep 17 00:00:00 2001 From: "Joshua M. Clulow" Date: Tue, 5 May 2020 08:05:02 +0000 Subject: [PATCH] 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. --- tscreen_solaris.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tscreen_solaris.go b/tscreen_solaris.go index 9fa48b8..60b94b9 100644 --- a/tscreen_solaris.go +++ b/tscreen_solaris.go @@ -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 +}