ats_utilities.splasher.iterminal_properties module

Module

iterminal_properties.py

Copyright

Copyright (C) 2017 - 2026 Vladimir Roncevic <elektron.ronca@gmail.com> ats_utilities is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ats_utilities is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Info

Defines abstract class ITerminalProperties with method(s). Interface for getting terminal properties.

class ats_utilities.splasher.iterminal_properties.ITerminalProperties[source]

Bases: ABC

Defines abstract class ITerminalProperties with method(s). Interface for getting terminal properties.

It defines:

attributes:

None

methods:
ioctl_get_window_size - Gets size for file descriptor.
ioctl_for_all_descriptors - Sets size for all file descriptors.
size - Gets terminal window size.
__str__ - Returns the terminal properties as string representation.
_abc_impl = <_abc._abc_data object>
abstractmethod ioctl_for_all_descriptors() None[source]

Sets size for all file descriptors.

Exceptions:

NotImplementedError.

abstractmethod ioctl_get_window_size(file_descriptor: int) tuple[Any, ...][source]

Gets size for file descriptor.

Parameters:

file_descriptor (<int>) – File descriptor.

Returns:

Window size of terminal.

Return type:

<tuple[Any, …]>

Exceptions:

NotImplementedError.

abstractmethod size() tuple[Any, ...][source]

Gets terminal window size.

Returns:

Terminal window size.

Return type:

<tuple[Any, …]>

Exceptions:

NotImplementedError.