scoop:scoop.asyncio:0.1.0
src/native_tty.scoop
Selected production source · src/native_tty.scoop
1
package scoop.asyncio3
@CLayout4
internal struct NativeTtySize(5
val columns: Long,6
val rows: Long,7
val widthPixels: Long,8
val heightPixels: Long9
)11
@CLayout12
internal struct NativeTtySizeResult(val size: NativeTtySize, val status: NativeIoStatus)14
@Extern(name = "scoop_io_tty_open")15
internal fun nativeTtyOpen(loop: Ptr<Unit>, id: Long): Int17
@Extern(name = "scoop_io_tty_close")18
internal fun nativeTtyClose(tty: Ptr<Unit>, id: Long): Int20
@Extern(name = "scoop_io_tty_receive")21
internal fun nativeTtyReceive(22
tty: Ptr<Unit>,23
id: Long,24
bytes: Ptr<Byte>?,25
count: Long,26
seconds: Long,27
nanos: Int28
): Int30
@Extern(name = "scoop_io_tty_write")31
internal fun nativeTtyWrite(tty: Ptr<Unit>, id: Long, bytes: Ptr<Byte>?, count: Long): Int33
@Extern(name = "scoop_io_tty_cancel_read")34
internal fun nativeTtyCancelRead(tty: Ptr<Unit>, id: Long)36
@Extern(name = "scoop_io_tty_cancel_write")37
internal fun nativeTtyCancelWrite(tty: Ptr<Unit>, id: Long)39
@Extern(name = "scoop_io_tty_set_raw")40
internal fun nativeTtyRaw(tty: Ptr<Unit>, enabled: Boolean): NativeIoStatus42
@Extern(name = "scoop_io_tty_is_raw")43
internal fun nativeTtyIsRaw(tty: Ptr<Unit>): Boolean45
@Extern(name = "scoop_io_tty_size")46
internal fun nativeTtySize(tty: Ptr<Unit>): NativeTtySizeResult