2025-05-05 00:00:56 +03:00
|
|
|
package stty
|
|
|
|
|
2025-05-08 19:24:11 +03:00
|
|
|
import (
|
|
|
|
"fmt"
|
2025-05-05 00:00:56 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func ERR_NOT_TTY() error {
|
|
|
|
return fmt.Errorf("File is not a tty")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_CANNOT_OPEN_FILE() error {
|
|
|
|
return fmt.Errorf("Can not open file")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_NO_WRITE_ACCESS() error {
|
|
|
|
return fmt.Errorf("No write access")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_STTY_MISSING() error {
|
|
|
|
return fmt.Errorf("Stty is missing")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_BAUDRATE_NOT_SUPPORTED() error {
|
|
|
|
return fmt.Errorf("Selected baudrate is not supported")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_SET_BAUDRATE_FAILED() error {
|
|
|
|
return fmt.Errorf("Failed to set baudrate using stty")
|
|
|
|
}
|
|
|
|
|
|
|
|
func ERR_CHECK_BAUDRATE_FAILED() error {
|
|
|
|
return fmt.Errorf("Failed to check baudrate using stty")
|
|
|
|
}
|