Scala on Console

I am trying to do exercises based on Udemy Course CCA175 in scala.
When I type a big line, the cursor goes to the beginning… it is very confusing
How to increase the terminal length and width?

Example below
rcala> class Order(OrderID : int, OrderDate : String, OrderCustomerID: int, Orde