Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
368 B

  1. ;# Usage: &flush(FILEHANDLE)
  2. ;# flushes the named filehandle
  3. ;# Usage: &printflush(FILEHANDLE, "prompt: ")
  4. ;# prints arguments and flushes filehandle
  5. sub flush {
  6. local($old) = select(shift);
  7. $| = 1;
  8. print "";
  9. $| = 0;
  10. select($old);
  11. }
  12. sub printflush {
  13. local($old) = select(shift);
  14. $| = 1;
  15. print @_;
  16. $| = 0;
  17. select($old);
  18. }
  19. 1;