During most of the personal computers history , serial ports connected computers to devices such as terminals and various peripherals . Throughout most of the history of personal computers , data transfer through serial ports connected the computer to devices such as terminals and various peripherals .