Stock futures were higher on Friday, Aug. 18, even as global markets sold off in the wake of a terrorist attack in Barcelona.

Dow Jones Industrial Average futures were up 0.06%, and S&P 500 futures added 0.11%, while Nasdaq futures added 0.3%.

Police shot dead five suspected terrorists, hours after a van slammed into a crowd in Barcelona on Thursday afternoon. Police killed the five would-be attackers in Cambrils, south of Barcelona, who had been planning a separate related attack, according to Reuters. The planned attack involved explosive belts, though those have now been determined to be fake. 

On Thursday, a van ran into a crowd along the tourist-heavy Las Ramblas avenue. That attack killed 13 people and injuring more than 100 others. One women has died from her injuries in Cambrils, bringing the total number of victims up to 14. ISIS claimed credit for the incident. 

The terrorist attack in Spain set European markets on edge on Friday. Germany's DAX fell by 0.48%, the FTSE 100 in London declined 1%, and the CAC 40 in France slid 1.2%. 

A stock selloff on Thursday, Aug. 17, sent U.S. benchmark indexes lower. A disappointing quarterly performance from Cisco Systems Inc. (CSCO - Get Report) triggered losses in the tech sector and led to a triple-digit decline on the Dow Jones Industrial Average. All Dow components ended in the red on Thursday, while the benchmark index suffered its worst daily performance since May.

Gap Inc. (GPS - Get Report) moved higher in premarket trading Friday morning thanks to quarterly earnings more than double a year earlier. The casual clothing retailer earned 68 cents a share over its quarter ended July 29, far better than a 31 cents a share a year earlier and higher than estimates of 52 cents.

Sales declined by 1.4% to $3.8 billion, but also exceeded estimates. Analysts anticipated $3.77 billion. The company's lower-priced Old Navy line, which has bolstered the stock in recent quarters, reported same-store sales increasing 5%. The Gap and Banana Republic brands' same-store sales fell 1% and 5%, respectively. It was an improvement on the same quarter a year earlier when Old Navy same-store sales came in flat, Gap fell 3%, and Banana Republic declined by 9%.

All performed better than in 2016, when Old Navy same-store sales were flat, Gap's fell 3% and Banana Republic's fell 9%.

Estee Lauder Companies Inc. (EL - Get Report) climbed around 5% in premarket trading Friday after a better-than-expected fiscal fourth quarter. The cosmetics company earned 61 cents a share, up from 25 cents a year earlier. Adjusted earnings of 5 cents came in higher than estimates of 43 cents. Sales of $2.89 billion exceeded consensus of $2.85 billion. First-quarter sales are expected to climb 9% to 10%. First-quarter adjusted earnings guidance of 94 cents to 97 cents a share came in higher than a targeted 91 cents.  

Deere & Co. (DE - Get Report)  declined before the bell after posting disappointing quarterly sales. Revenue increased by 16.6% to $7.81 billion, though fell short of a targeted $7.9 billion. The agriculture equipment company earned $1.97 a share over its quarter ended July 30, higher than $1.55 a share a year earlier. Analysts anticipated $1.93 a share in profit. Deere said it anticipates full-year agriculture and turf sales to increase by 9%, while construction and forestry revenue is targeted to climb by 15%. CEO Samuel Allen pointed to farm machinery sales in South America as a particular bright spot.  

Around 92% of S&P 500 companies have reported earnings so far this season. Of those, 73.7% have exceeded earnings estimates, above the historical average of 64%, according to Thomson Reuters data. More than 68% have topped revenue consensus, also above an average of 59%.

It's a quieter day on the economic calendar on Friday with just a preliminary reading on consumer sentiment for August out at 10 a.m. ET. The weekly read on U.S. drilling activity from Baker Hughes will be released as normal at 1 p.m. ET.

Updated from 8:24 a.m. ET, Friday, Aug. 18. 

More of What's Trending on TheStreet: