Commit Graph

12 Commits

Author SHA1 Message Date
Jeremy Soller 4f90d4f69e Merge branch 'desc-tweak' into 'master'
tweak description of terminal_size_pixels() to fit in with the rest

See merge request redox-os/termion!169
2022-10-21 06:52:05 +00:00
Jeremy Soller 557f7a4e6f Merge branch 'master' into 'master'
Annotate the tuple returned by terminal_size()

See merge request redox-os/termion!179
2022-10-21 06:47:13 +00:00
Luqman Aden 4fafb44f89 Use constants from libc instead of magic numbers. 2021-09-27 07:43:32 -07:00
Luqman Aden 234af89ffb Use libc bindings instead of manual extern blocks to take advantage of platform wrappers in libc crate. 2021-09-27 07:39:06 -07:00
Richard Bradshaw d6f42c9d61 Annotate the tuple
Make clear that the tuple is (columns, rows).
2021-06-26 18:13:37 +01:00
rabite 0e905906d4 tweak description of terminal_size_pixels() to fit in with the rest 2020-05-22 01:09:02 +02:00
rabite0 574f863676 Add terminal_size_pixels() to expose terminal's pixel size 2019-07-06 18:08:57 +00:00
Michael Bradshaw 1c936ca06c Use stdout to get and set terminal attributes 2019-06-12 22:59:41 +00:00
Jeremy Soller a69af17888
Support redox target os with unix target family 2019-04-21 16:57:34 -06:00
Michael Neumann 0837ad5ab1 Fix TIOCGWINSZ type mismatch on DragonFly
Below is the error message I got before this patch:

    error[E0308]: mismatched types
      --> src/sys/unix/size.rs:17:34
       |
    17 |         cvt(ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut size as *mut _))?;
       |                                  ^^^^^^^^^^ expected u64, found u32
    help: you can cast an `u32` to `u64`, which will zero-extend the source value
       |
    17 |         cvt(ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &mut size as *mut _))?;
       |                                  ^^^^^^^^^^^^^^^^^
2018-12-29 13:30:22 +01:00
Niv Kaminer 00f87e5ed8 use `TIOCGWINSZ` directly from `libc` 2017-10-11 13:06:09 +03:00
Jeremy Soller cd455e8358 Move system specific features into sys module 2017-07-31 21:17:47 -06:00