Pascal / crt / KeyPressed
AssignCrt, ClrEol, ClrScr, cursorbig, cursoroff, cursoron, Delay, DelLine, GotoXY, HighVideo, InsLine, » KeyPressed, LowVideo, NormVideo, NoSound, ReadKey, Sound, TextBackground, TextColor, TextMode, WhereX, WhereY, Window,
Funcion: KeyPressed()
Sintaxis:
Descripcion: Keypressed scanea el buffer del teclado y ve si una tecla ha sido presionada. Si es este el caso, devuelve true, si no devuelve false. Las teclas Shift, Alt y Ctrl no son reportadas.
Ejemplo:
Sintaxis:
function KeyPressed: Boolean;
Descripcion: Keypressed scanea el buffer del teclado y ve si una tecla ha sido presionada. Si es este el caso, devuelve true, si no devuelve false. Las teclas Shift, Alt y Ctrl no son reportadas.
Ejemplo:
Program Example2; uses Crt; { Program to demonstrate the KeyPressed function. } begin WriteLn('Waiting until a key is pressed'); repeat until KeyPressed; { The key is not Read, so it should also be outputted at the commandline} end.
Librerias Pascal
Libreria crt - CRT - Pantalla y teclado del PASCAL de Turbo que maneja la unidadLibreria dos - DOS - Interface Turbo Pascal MS-DOS
Libreria Graph - Unidad para manipular los graficos de la pantalla compatible con TP
Libreria Objects - Objetos basicos compatible con TP
Libreria math - Rutinas adicionales matematicas
Libreria Printer - Provee de acceso a la impresora
Libreria strings - Rutinas para el manejo de cadenas
Libreria BaseUnix - Funcionalidad Basica de Linux
Libreria System - Manejo de Archivos - Funciones para la manipulacion de archivos en Pascal