All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [patch] Widening terminal coordinates, and reading terminal size.
Date: Wed, 6 Oct 2004 10:55:38 +0200	[thread overview]
Message-ID: <200410061055.38925.okuji@enbug.org> (raw)
In-Reply-To: <200410060329.44046.tim.lists@majoroak.f2s.com>

On Wednesday 06 October 2004 04:29, Timothy Baldwin wrote:
> Here is a patch to widen terminal coordinates from grub_uint8_t to
> unsigned, change grub_getxy to return values via pointers. I have
> also added grub_getsizexy to read the terminal size. The PPC
> implementation is a dummy function, an the PC version assumes a
> height of 25. Improvements would be welcome.

I agree with your idea, but the name `getsizexy' is not very good, since 
the return values are not coordinates. getsize or getgeometry might be 
better. What do you think?

>  * include/grub/term.h
>  (grub_getsizexy, grub_term::grub_getsizexy): New prototypes.

This does not follow the convention. First, you should not specify 
multiple functions in an entry. Please split it.

Also, grub_term::grub_getsizexy is not good. It should be:

(struct grub_term): Added a new member `grub_getsizexy'.

>  (grub_getxy, grub_term::grub_getxy): Returns via pointers to
>  unsigned, instead of packed into a 16-bit value, all callers
>  and implementations updated.

Likewise.

>  (grub_gotoxy, grub_term::grub_gotoxy): Arguements are now unsigned.

Likewise.

>  * term/i386/pc/console.c kern/i386/pc/startup.S
>  include/grub/i386/pc/console.h (grub_console_getsizexy): New
> function

You should not mention multiple files at a time. Please split it.

And, you don't describe your change of grub_console_getxy.

>  * util/console.c (grub_ncurses_getsizexy): New function

Please append a period.

Okuji



  reply	other threads:[~2004-10-06  9:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-06  2:29 [patch] Widening terminal coordinates, and reading terminal size Timothy Baldwin
2004-10-06  8:55 ` Yoshinori K. Okuji [this message]
2004-10-06 15:18   ` Timothy Baldwin
2004-10-06 15:41     ` Marco Gerards
2004-10-06 21:50       ` Timothy Baldwin
2004-10-06 22:38         ` Marco Gerards
2004-10-07  9:22       ` Yoshinori K. Okuji
2004-10-09 11:03         ` Timothy Baldwin
2004-10-09 18:21           ` Yoshinori K. Okuji
2005-01-08 13:07             ` Marco Gerards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410061055.38925.okuji@enbug.org \
    --to=okuji@enbug.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.